from .db import LOCSession
# 初始化db
def init_db():
    try:
        db = LOCSession()
        yield db
    finally:
        db.close()
